package com.ur.service.impl;

import java.util.List;

import org.nutz.dao.Condition;
import org.nutz.dao.pager.Pager;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;

import com.ur.bean.User;
import com.ur.dao.UserDao;
import com.ur.service.UserService;

@IocBean
public class UserServiceImpl implements UserService{
	
	@Inject
	private UserDao userDao;

	@Override
	public boolean delete(int referenceId) {
		return false;
	}

	@Override
	public boolean add(User user) {
		return userDao.add(user);
	}

	@Override
	public boolean update(User user) {
		return false;
	}

	@Override
	public List<User> query(Condition condition, Pager pager) {
		return userDao.query(condition, pager);
	}

	@Override
	public int getTotalCount() {
		return userDao.getTotalCount();
	}

}
